/*
 * CopyRight(C) Kenbin
 */

#ifndef LSG_UTILS_INCLUDED
#define LSG_UTILS_INCLUDED

namespace LSG {
    int GetPower(int n);
    const char *ParseString(register char *result, int result_len, const char *src, 
	    int seq, const char **next = NULL, char delimitor = 0);
    int GetBuddyBitSize(int block_count); /* bytes */
    int VerifyHeadBlock(const char *filename, int block_size, int block_count);
    void DecodePhysicID(const char *physic_id, int *block_size, int *file_seq, int *buddybit_offset);
};

#endif
